.class public Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;
.super Lcom/estrongs/android/ui/homepage/viewholder/HomeViewHolder;
.source "MediaViewHolder.java"


# instance fields
.field b:Landroid/widget/LinearLayout;

.field c:Lcom/estrongs/android/ui/topclassify/ExpandableLayout;

.field d:Landroid/widget/ImageView;

.field e:Landroid/widget/LinearLayout;

.field private f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Landroid/view/View;",
            ">;)V"
        }
    .end annotation

    const v0, 0x7f0c01aa

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/homepage/viewholder/HomeViewHolder;-><init>(Landroid/content/Context;I)V

    .line 2
    invoke-direct {p0, p2}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->a(Ljava/util/List;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->f:Ljava/util/List;

    return-object p0
.end method

.method private a(Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Landroid/view/View;",
            ">;)V"
        }
    .end annotation

    .line 11
    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->f:Ljava/util/List;

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->c:Lcom/estrongs/android/ui/topclassify/ExpandableLayout;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/topclassify/ExpandableLayout;->setShowViews(Ljava/util/List;)V

    const/4 v0, 0x0

    const/16 v1, 0x8

    if-eqz p1, :cond_1

    .line 13
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    const/4 v3, 0x2

    if-gt v2, v3, :cond_0

    goto :goto_0

    .line 14
    :cond_0
    iget-object v2, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    .line 15
    :cond_1
    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 16
    :goto_1
    iget-object v2, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->b:Landroid/widget/LinearLayout;

    new-instance v3, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder$a;

    invoke-direct {v3, p0}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder$a;-><init>(Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;)V

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-eqz p1, :cond_3

    .line 17
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_2

    goto :goto_2

    .line 18
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->e:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_3

    .line 19
    :cond_3
    :goto_2
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->e:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 20
    :goto_3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->m1()Z

    move-result p1

    if-nez p1, :cond_4

    .line 21
    invoke-virtual {p0}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->d()V

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->b:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_4

    .line 23
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->b:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_4
    return-void
.end method


# virtual methods
.method protected a(Landroid/view/View;)V
    .locals 2

    const v0, 0x7f0906cb

    .line 2
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->b:Landroid/widget/LinearLayout;

    const/4 v1, 0x1

    .line 3
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setFocusable(Z)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->b:Landroid/widget/LinearLayout;

    const v1, 0x7f0800e3

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    const v0, 0x7f0903ff

    .line 5
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/topclassify/ExpandableLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->c:Lcom/estrongs/android/ui/topclassify/ExpandableLayout;

    const v0, 0x7f0905d6

    .line 6
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->d:Landroid/widget/ImageView;

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->c:Lcom/estrongs/android/ui/topclassify/ExpandableLayout;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/topclassify/ExpandableLayout;->setSwitcher(Landroid/view/View;)V

    const v0, 0x7f0909c9

    .line 8
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->e:Landroid/widget/LinearLayout;

    return-void
.end method

.method public a(Ljava/lang/Object;)V
    .locals 0

    .line 9
    check-cast p1, Ljava/util/List;

    .line 10
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->a(Ljava/util/List;)V

    return-void
.end method

.method public d()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->c:Lcom/estrongs/android/ui/topclassify/ExpandableLayout;

    new-instance v1, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder$b;-><init>(Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/widget/LinearLayout;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method
